package com.wxq.day0419.service.impl;

import com.wxq.day0419.pojo.Goods;
import com.wxq.day0419.service.IGoodsService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author wxq
 * @Date 2021/4/19
 **/
@Service
public class GoodsServiceImpl implements IGoodsService { private static ArrayList<Goods> goodsList = new ArrayList<Goods>();

    @Override
    public boolean save(Goods goods) {
        goodsList.add(goods);
        return true;
    }

    @Override
    public List<Goods> getGoods() {
        return goodsList;
    }
}
